def no_of_1_bits(num: int)->int:
    cnt = 0
    while num:
        cnt+=1
        num &= num-1
    return cnt

print(no_of_1_bits(0b00000000000000000000000000001011))